package com.lovo.csc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lovo.csc.bean.AdminBean;
import com.lovo.csc.mapper.IAdminMapper;
import com.lovo.csc.service.IAdminService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AdminServiceImpl implements IAdminService {
    @Autowired
    private IAdminMapper mapper;
    @Override
    public AdminBean login(String userName, String pwd) {
        QueryWrapper<AdminBean> qw = new QueryWrapper<>();
        qw.eq("a_userName",userName);
        qw.eq("a_pwd",pwd);
        return mapper.selectOne(qw);
    }
}
